﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using BusinessObjects.BO_GetObjects;

/// <summary>
/// Summary description for Articles_Order
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]
public class Order : System.Web.Services.WebService
{

    public Order()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }
    [WebMethod]
    public bool articles(string id, int mid)
    {
        try { return BO_Articles.Order(mid, id); }
        catch { return false; }
    }
    [WebMethod]
    public bool sec_admin_modules(string id)
    {
        try { return BO_Sec_Admin_Modules.Order(id, ";", 1); }
        catch { return false; }
    }
    [WebMethod]
    public bool modules(string id, int l_id, int c_id)
    {
        try { return BO_Module.Order(c_id + ":" + l_id, id, ":", ";"); }
        catch { return false; }
    }
    [WebMethod]
    public bool categories(string id)
    {
        try { return BO_Categories.Order(id, ";", 1); }
        catch { return false; }
    }
    [WebMethod]
    public bool Need(string id)
    {
        try { return BO_Needs.Order(id); }
        catch { return false; }
    }
}
